<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<title>图书系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" th:href="@{/css/style.css}" />

	</head>
	<body >
		<div id="wrap">
			<div id="top_content"> 
				<div id="header">
					<div id="rightheader">
						<p>

							<br />
						</p>
					</div>
					<div id="topheader">
						<h1 id="title">
							<a href="#">图书管理</a>
						</h1>
					</div>
					<div id="navigation">
					</div>
				</div>
				<div id="content">
					<p id="whereami">
					</p>
					<h1>
						欢迎来到图书管理系统
					</h1>
					<table class="table">
						<tr class="table_header">
							<td>
								条形码
							</td>
							<td>
								书名
							</td>
							<td>
								出版社
							</td>
							<td>
								版次
							</td>
							<td>
								出版日期
							</td>
							<td>
								操作
							</td>
						</tr>
						<tr class="row1" th:each = "emp:${emps}">
							<td>
								<span th:text="${emp.id}"></span>
							</td>
							<td>
								<span th:text="${emp.name}"></span>
							</td>
							<td>
								<span th:text="${emp.salary}"></span>
							</td>
							<td>
								<span th:text="${emp.age}"></span>
							</td>
							<td>
								<span th:text="${#dates.format(emp.bir,'yyyy-MM-dd')}"></span>
							</td>
							<td>
								<a th:href="@{/emp/delete(id=${emp.id})}">删除</a>&nbsp;<a th:href="@{/emp/find(id=${emp.id})}">更新</a>
							</td>
						</tr>
					</table>
					<p>
						<input type="button" class="button" value="增加书种" onclick="location.href='/ems/toSave'"/>
						<input type="button" class="button" value="返回登录" onclick="location.href='/ems/index'"/>
					</p>



				</div>
			</div>
			<div id="footer">
				<div id="footer_bg">

				</div>
			</div>
		</div>
	</body>
</html>
